package com.example.javaproject;

import java.io.Serializable;

/**
 * Created by zjx8969 on 2018/2/28.
 */

public class ModelA implements Serializable {

    private static ModelA modelA;
    public String value1;
    public String value2;

    public static ModelA getInstance() {
        if (modelA == null) {
            modelA = new ModelA();
        }
        return modelA;
    }

    @Override
    public String toString() {
        return "ModelA{" +
                "value1='" + value1 + '\'' +
                ", value2='" + value2 + '\'' +
                '}';
    }
}
